/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author XPF
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '../model/baseModel';

const { adminPath } = useGlobSetting();

export interface SpotsEvaluationDataDetailed extends BasicModel<SpotsEvaluationDataDetailed> {
  detailedId?: string; // 成绩主键
  indexId?: string; // 对应指标
  indexEvaluationValue?: string; // 单项指标实际测评值
  indexEvaluationScore?: string; // 单项指标实际测评值对应分值
  indexEvaluationGrade?: string; // 单项指标实际测评值对应分值对应等级
  recordBy?: string; // 记录人员
  recordDate?: string; // 记录时间
  dataId?: string; // 记录主键
  testStatus?: string; // 对应指标测试状态“0正常、1无法测试”
}

export const spotsEvaluationDataDetailedList = (params?: SpotsEvaluationDataDetailed | any) =>
  defHttp.get<SpotsEvaluationDataDetailed>({ url: adminPath + '/sports/spotsEvaluationDataDetailed/list', params });

export const spotsEvaluationDataDetailedListData = (params?: SpotsEvaluationDataDetailed | any) =>
  defHttp.post<Page<SpotsEvaluationDataDetailed>>({ url: adminPath + '/sports/spotsEvaluationDataDetailed/listData', params });

export const spotsEvaluationDataDetailedForm = (params?: SpotsEvaluationDataDetailed | any) =>
  defHttp.get<SpotsEvaluationDataDetailed>({ url: adminPath + '/sports/spotsEvaluationDataDetailed/form', params });

export const spotsEvaluationDataDetailedSave = (params?: any, data?: SpotsEvaluationDataDetailed | any) =>
  defHttp.postJson<SpotsEvaluationDataDetailed>({ url: adminPath + '/sports/spotsEvaluationDataDetailed/save', params, data });

export const spotsEvaluationDataDetailedDelete = (params?: SpotsEvaluationDataDetailed | any) =>
  defHttp.get<SpotsEvaluationDataDetailed>({ url: adminPath + '/sports/spotsEvaluationDataDetailed/delete', params });
